package socket

import (
	"fmt"
	"github.com/gorilla/websocket"
)

// 写消息
func write(conn *websocket.Conn, msg string) {
	err := conn.WriteMessage(websocket.BinaryMessage, []byte(msg))
	if err != nil {
		fmt.Println("write:", err)
	}
}
